{foreach $foo as $x name=bar}{$x} {/foreach}